package com.hcf.project.common.convention.enums;

import com.hcf.project.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {

    USER_NULL("B000200","用户记录不存在"),
    USER_NAME_EXIST("B000201","用户名已存在"),

    USER_NAME_ILLEGAL("B000202","非法的用户名"),

    USER_PASSWORD_ERROR("B000203","密码错误"),

    USER_PASSWORD_TOO_SHORT("B000204","密码太短"),

    USER_PASSWORD_ILLEGAL("B000205","非法的密码"),

    USER_EMAIL_ILLEGAL("B000207","非法的邮箱"),

    USER_MOBILE_EXIST("B000208","手机号已存在"),

    USER_MOBILE_ILLEGAL("B000209","非法的手机号"),

    USER_LOGIN_ERROR("B000210", "用户登录失败"),

    USER_SAVE_EROOR("B000211", "用户新增记录失败");


    private String code;
    private String message;

    UserErrorCodeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
